import {Component, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';

@Component({
  selector: 'app-revoke-reason',
  templateUrl: './revoke-reason.component.html'
})
/**
 * @author csw
 * @description:预约-撤销原因共享业务组件
 * @date 2021-01-28 15:14:51
 */
export class RevokeReasonComponent implements OnInit, OnChanges {
  @Input() revokeReasonDatas: SubscribeApproveParams;
  // 撤销原因内容数据实体类型
  revokeReasonInfo: SubscribeApproveParams = new SubscribeApproveParams();

  constructor() {
  }

  ngOnInit() {
  }

  ngOnChanges(changes: SimpleChanges): void {
    if (changes.revokeReasonDatas) {
      this.revokeReasonInfo = changes.revokeReasonDatas.currentValue;
    }
  }
}

/******** revoke reason class**********/
class SubscribeApproveParams {
  desc: string;
  name: string;
  time: string;
}
